package fr.vincent.aquarium.metier.article;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import fr.vincent.aquarium.metier.commun.HibernateDaoSupport;

@Repository("article")
public class ArticleDaoImpl extends HibernateDaoSupport<Article> implements
		ArticleDao {

	@Autowired
	public ArticleDaoImpl(
			@Qualifier("SessionFactory") SessionFactory sessionFactory) {
		super.setClazz(Article.class);
		this.sessionFactory = sessionFactory;
	}
}
